﻿namespace Sidvall.WorkItemManager.Data.Entity
{
    public partial class SystemContext
    {
        #region Public Members

        #region DataManager

        private System.Lazy<Sidvall.WorkItemManager.Data.Entity.DataManager> _DataManager = new System.Lazy<Sidvall.WorkItemManager.Data.Entity.DataManager>();
        public Sidvall.WorkItemManager.Data.Entity.DataManager DataManager
        {
            get
            {
                return _DataManager.Value;
            }
        }

        #endregion
        #region EntityFacade

        private System.Lazy<global::Sidvall.WorkItemManager.Data.Entity.Model.EntityFacade> _EntityFacade = new System.Lazy<global::Sidvall.WorkItemManager.Data.Entity.Model.EntityFacade>();
        public global::Sidvall.WorkItemManager.Data.Entity.Model.EntityFacade EntityFacade
        {
            get
            {
                return _EntityFacade.Value;
            }
        }

        #endregion

        #endregion
        #region Factory Members

        private static readonly System.Lazy<SystemContext> _Current = new System.Lazy<SystemContext>(() => new SystemContext());
        public static SystemContext Current
        {
            get
            {
                return _Current.Value;
            }
        }

        #endregion
        #region Constructors

        private SystemContext()
        {
        }

        #endregion
    }
}